<div class="center">
<form class="centered pct50" name="formRegistrace" action="<? echo redirect_str(PAGE_REGISTRATION).action(ACTION_NEW_USER); ?>" method="post">
    <? $code = codegen(); ?>
    <input type="hidden" name="gen_code" value="<?echo $code;?>" />
    
    <fieldset>
      <legend>Vyplňte údaje</legend>
      <table class="centered grid">
        <tr>
          <th>uživatelské jméno <span class="star">*</span></th>
          <td><input class='text px120' type='text' maxlength="15" id='reg_username' name='reg_username' value="<? echo $reg_username;?>"></td>
        </tr>
        
        <tr>
          <th>heslo <span class="star">*</span></th>
          <td><input class='text px120' type='password' maxlength="30" id='reg_pass' name='reg_pass' value=""></td>
        </tr>
        
        <tr>
          <th>heslo znovu <span class="star">*</span></th>
          <td><input class='text px120' type='password' maxlength="30" id='reg_pass_again' name='reg_pass_again' value=""></td>
        </tr>
        
        <tr>
          <td colspan=2><hr><td>
        </tr>
        
        <tr>
          <th>jméno <span class="star">*</span></th>
          <td><input class='text px120' type='text' maxlength="30" id='reg_name' name='reg_name' value="<? echo $reg_name;?>"></td>
        </tr>
        
        <tr>
          <th>příjmení <span class="star">*</span></th>
          <td><input class='text px120' type='text' maxlength="30" id='reg_surname' name='reg_surname' value="<? echo $reg_surname;?>"></td>
        </tr>
        
        <tr>
          <th>email <span class="star">*</span></th>
          <td><input class='text px120' type='text' maxlength="30" id='reg_email' name='reg_email' value="<? echo $reg_email;?>"></td>
        </tr>
        
        <tr>
          <td colspan=2><hr><td>
        </tr>
    
        <tr>
          <th></th>
          <td><img src="./inc/codegen.php?code=<?echo $code;?>"></td>
        </tr>
        
        <tr>
          <th>opište číslo z obrázku <span class="star">*</span></th>
          <td><input class='text required px120' type='text' maxlength="10" id='reg_code' name='reg_code' value="<? echo $reg_code;?>"></td>
        </tr>
        
        <tr>
          <td colspan=2><hr><td>
        </tr>
        
        <tr>
          <td colspan=2 class="center"><span class="star">* povinné údaje</span></td>
        </tr>
      </table>
      
      <div class="center"><input class="button" onmouseover="this.className='button_hover'" 
       onmouseout="this.className='button'" type="submit" value="ZAREGISTROVAT"></div>
       
    </fieldset>
</form>
</div>